package com.ymatou.iapi.trading.operate.service;

import org.json.JSONException;
import org.json.JSONObject;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*订单回滚到待发货接口Call
*FreeMaker Template自动生成代码
*/
public class RollbackToWaitDeliveryCall extends YmatouBaseCall{
	private static String opurl ="/api/Common/RollbackToWaitDelivery";
	
	public RollbackToWaitDeliveryCall() {
		super(EnvSetup.getSystemUrl("operate_iapi"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	  // get data
    public JSONObject getData() {
        JSONObject data = null;
        try {
            data = (JSONObject) new JSONObject(getReturnData()).get("data");
        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return data;
    }

	
}